<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>报名成功 - 科创课程（电动发球机）</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.5.3/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.bootcdn.net/ajax/libs/font-awesome/5.15.1/css/all.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap" rel="stylesheet">
    <style>
        :root {
            --primary-color: #3183E0;
            --secondary-color: #50C1E9;
            --background-color: #F0F8FF;
            --success-color: #28a745;
            --text-color: #2C3E50;
            --info-bg-color: #F8FBFF;
            --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
            background: var(--background-color);
            color: var(--text-color);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px 0;
        }

        .container {
            width: 100%;
            max-width: 500px;
            padding: 0 15px;
            margin: 0 auto;
        }

        .success-card {
            background: white;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: var(--card-shadow);
            transition: transform 0.3s ease;
            transform: translateY(0);
        }

        .success-card:hover {
            transform: translateY(-5px);
        }

        .card-header {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: white;
            padding: 25px 20px;
            text-align: center;
            position: relative;
        }

        .card-header::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 6px;
            background: linear-gradient(90deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0.3) 100%);
        }

        .card-header h3 {
            margin: 0;
            font-weight: 700;
            font-size: 1.5rem;
            letter-spacing: 0.5px;
            text-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .card-body {
            padding: 30px 25px;
        }

        .success-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .success-icon {
            width: 100px;
            height: 100px;
            background: var(--success-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 25px;
            box-shadow: 0 10px 20px rgba(40, 167, 69, 0.3);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% {
                transform: scale(1);
                box-shadow: 0 10px 20px rgba(40, 167, 69, 0.3);
            }
            50% {
                transform: scale(1.05);
                box-shadow: 0 15px 25px rgba(40, 167, 69, 0.4);
            }
            100% {
                transform: scale(1);
                box-shadow: 0 10px 20px rgba(40, 167, 69, 0.3);
            }
        }

        .success-icon i {
            font-size: 50px;
            color: white;
        }

        .success-title {
            font-size: 28px;
            font-weight: 700;
            color: var(--text-color);
            margin-bottom: 15px;
        }

        .success-message {
            font-size: 16px;
            color: #6c757d;
            margin-bottom: 30px;
            line-height: 1.6;
        }

        .registration-info {
            background: var(--info-bg-color);
            border-radius: 12px;
            padding: 20px;
            width: 100%;
            margin-top: 10px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.03);
            border-left: 4px solid var(--primary-color);
        }

        .info-item {
            display: flex;
            align-items: flex-start;
            margin-bottom: 15px;
            text-align: left;
        }

        .info-item:last-child {
            margin-bottom: 0;
        }

        .info-icon {
            width: 28px;
            height: 28px;
            background: rgba(49, 131, 224, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            flex-shrink: 0;
        }

        .info-icon i {
            font-size: 14px;
            color: var(--primary-color);
        }

        .info-content {
            flex: 1;
        }

        .info-label {
            display: block;
            font-size: 14px;
            color: #6c757d;
            margin-bottom: 3px;
        }

        .info-value {
            font-size: 16px;
            font-weight: 500;
            color: var(--text-color);
        }

        /* 移动端优化 */
        @media (max-width: 480px) {
            .container {
                padding: 0 10px;
            }

            .card-header {
                padding: 20px 15px;
            }

            .card-header h3 {
                font-size: 1.3rem;
            }

            .card-body {
                padding: 25px 15px;
            }

            .success-icon {
                width: 80px;
                height: 80px;
                margin-bottom: 20px;
            }

            .success-icon i {
                font-size: 40px;
            }

            .success-title {
                font-size: 24px;
            }

            .info-item {
                margin-bottom: 12px;
            }
        }
    </style>
</head>
<body>
<div class="container">
    <div class="success-card">
        <div class="card-header">
            <h3>科创课程（电动发球机）</h3>
        </div>
        <div class="card-body">
            <div class="success-container">
                <div class="success-icon">
                    <i class="fas fa-check"></i>
                </div>
                <h2 class="success-title">报名成功</h2>
                <p class="success-message">您已成功报名科创课程（电动发球机），我们将尽快与您联系确认详情。感谢您的参与！</p>

                <div class="registration-info">
                    <div class="info-item">
                        <div class="info-icon">
                            <i class="fas fa-user"></i>
                        </div>
                        <div class="info-content">
                            <span class="info-label">学生姓名</span>
                            <span class="info-value" th:text="${registration.studentName}">-</span>
                        </div>
                    </div>

                    <div class="info-item">
                        <div class="info-icon">
                            <i class="fas fa-graduation-cap"></i>
                        </div>
                        <div class="info-content">
                            <span class="info-label">年级</span>
                            <span class="info-value" th:text="${registration.grade}">-</span>
                        </div>
                    </div>

                    <div class="info-item">
                        <div class="info-icon">
                            <i class="fas fa-mobile-alt"></i>
                        </div>
                        <div class="info-content">
                            <span class="info-label">联系方式</span>
                            <span class="info-value" th:text="${registration.contactPhone}">-</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
    $(document).ready(function() {
        // 页面加载完成后的动画效果
        $('.success-card').css('opacity', '0').css('transform', 'translateY(20px)');
        setTimeout(function() {
            $('.success-card').css('transition', 'all 0.5s ease')
                .css('opacity', '1')
                .css('transform', 'translateY(0)');
        }, 100);
    });
</script>
</body>
</html> 